﻿using RayDen.Library.Components.Surface;
using RayDen.Library.Entity.Scene;
using RayDen.RayEngine;

namespace RayEngine.Spectral.Entities.Materials
{
    public class SolidMaterial : BaseMaterial
    {
        public BrdfType Type;
        public BrdfClass Class;

        protected BrdfBase brdf;

        public SolidMaterial(int id, MaterialInfo mi, RayEngineScene scn, BrdfBase brdf) : base(mi, scn)
        {
            this.Id = id;
            this.brdf = brdf;
        }

        public BrdfBase GetBrdf(ShadePointInfo point, float u0, out float pdf)
        {
            pdf = 1f;
            return this.brdf;
        }

    }
}